package com.gxa.service.parking.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.entity.parking.VehicleBSelect;
import com.gxa.entity.parking.VehicleBlist;
import com.gxa.mapper.parking.VehicleBlistMapper;
import com.gxa.service.parking.VehicleBlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Service
public class VehicleBlistServiceImpl extends ServiceImpl<VehicleBlistMapper, VehicleBlist> implements VehicleBlistService {

    @Autowired
    private VehicleBlistMapper vehicleBlistMapper;
    @Override
    public List<VehicleBlist> selectList() {
        return vehicleBlistMapper.selectList(null);
    }

    @Override
    public List<VehicleBlist> selectByCondition(VehicleBSelect vehicleBSelect) {
        return vehicleBlistMapper.selectByCondition(vehicleBSelect);

    }


    @Override
    public boolean updateById(VehicleBlist vehicleBlist) {
        vehicleBlistMapper.updateByid(vehicleBlist);
        return true;
    }


    @Override
    public boolean deleteById(Integer id) {

        vehicleBlistMapper.deleteByid(id);
        return true;
    }

    @Override
    public boolean addVehicle(VehicleBlist vehicleBlist) {
        vehicleBlistMapper.insert(vehicleBlist);
        return true;
    }
}
